
<div class="menuitem" style="border-top: 2px solid #FFFFFF;">
    <div class="menutitle">Input</div>
    {% if not network.inputFileExists %}
    <div><a href="{% url 'pdep:network-editor' networkKey=networkKey%}">Create an input file manually</a></div>
    <div><a href="{% url 'pdep:network-upload' networkKey=networkKey%}">Upload an input file</a></div>
    {% else %}
    <div><a href="{% url 'pdep:network-editor' networkKey=networkKey%}">Edit an input file manually</a></div>
    <div><a href="{% url 'pdep:network-upload' networkKey=networkKey%}">Upload a replacement input file</a></div>
    {% endif %}
</div>

{% if network.inputFileExists %}

<div class="menuitem">
    <div class="menutitle">Output</div>
    {% if not network.outputFileExists %}
    <div><a href="{% url 'pdep:network-run' networkKey=networkKey%}">Run Pressure Dependent Networks</a></div>
    {% else %}
    <div><a href="{% url 'pdep:network-plot-micro' networkKey=networkKey%}">Plot k(E) and &rho;(E) values</a></div>
    <!-- <div><a href="{% url 'pdep:network-plot-kinetics' networkKey=networkKey%}">Plot k(T,P) values</a></div>  -->
    <div><a href="{% url 'pdep:network-run' networkKey=networkKey%}">Rerun Pressure Dependent Networks</a></div>
    {% endif %}
</div>

<div class="menuitem">
    <div class="menutitle">Potential Energy Surface</div>
    <div><a href="{% url 'pdep:network-draw-png' networkKey=networkKey %}">{% if network.surfaceFilePNGExists %}Redraw{% else %}Draw{% endif %} surface as PNG</a></div>
    <div><a href="{% url 'pdep:network-draw-pdf' networkKey=networkKey %}">{% if network.surfaceFilePDFExists %}Redraw{% else %}Draw{% endif %} surface as PDF</a></div>
    <div><a href="{% url 'pdep:network-draw-svg' networkKey=networkKey %}">{% if network.surfaceFileSVGExists %}Redraw{% else %}Draw{% endif %} surface as SVG</a></div>
</div>

{% endif %}
